import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/purchaseManage/list',
    method: 'get',
    params: query
  })
}

export function fetchPurchaseAndItemList(query){
  return request({
    url: '/purchaseManage/fetchPurchaseAndItemList',
    method: 'get',
    params: query
  })
}

export function querySupplierDetails(query){
  return request({
    url: '/purchaseManage/querySupplierDetails',
    method: 'get',
    params: query
  })
}

export function endQuote(data) {
  return request({
    url: '/purchaseManage/endQuote',
    method: 'post',
    data
  })
}

export function winBidding(data) {
  return request({
    url: '/purchaseManage/winBidding',
    method: 'post',
    data
  })
}

export function queryQuoteDetails(query) {
  return request({
    url: '/purchaseManage/queryQuoteDetails',
    method: 'get',
    params: query
  })
}

export function undo(data) {
  return request({
    url: '/purchaseManage/undo',
    method: 'post',
    data
  })
}

export function batchInspection(data) {
  return request({
    url: '/purchaseManage/batchInspection',
    method: 'post',
    data
  })
}

  export function qualified(data) {
    return request({
      url: '/purchaseManage/qualified',
      method: 'post',
      data
    })
  }
  
  export function noQualified(data) {
    return request({
      url: '/purchaseManage/noQualified',
      method: 'post',
      data
    })
  }

  export function uploadAttachments(data) {
    return request({
      url: '/purchaseManage/uploadAttachments',
      method: 'post',
      data
    })
  }

  export function createPurchase(data) {
    return request({
      url: '/purchaseManage/create',
      method: 'post',
      data
    })
  }
  
  










